package com.bc66.tiger.dict.common;


public enum GenderType {
	MALE(1),
	FEMALE(2);
	
	private int value;
	
	GenderType(int value){
		this.value = value;
	}
	
	public int getValue() {
		return value;
	} 
	
	public static String getKey(int value) {
		GenderType tmpKey = null;
        for (GenderType tmpEnum : GenderType.values()) {
            if (tmpEnum.value == value) {
                tmpKey = tmpEnum;
                break;
            }
            
        }
        return tmpKey.name();
    }
	
}
